<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.3.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"example.com","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.json"};
  </script>

  <meta name="description" content="12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210">
<meta property="og:type" content="article">
<meta property="og:title" content="lv_conf.h注释8.3.1版本">
<meta property="og:url" content="http://example.com/2024/02/06/lv_conf.h%E6%B3%A8%E9%87%8A8.3.1%E7%89%88%E6%9C%AC/index.html">
<meta property="og:site_name" content="学无止境">
<meta property="og:description" content="12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2024-02-06T13:58:15.000Z">
<meta property="article:modified_time" content="2024-02-06T13:58:15.000Z">
<meta property="article:author" content="xudonglei">
<meta property="article:tag" content="LVGL">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="http://example.com/2024/02/06/lv_conf.h%E6%B3%A8%E9%87%8A8.3.1%E7%89%88%E6%9C%AC/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>lv_conf.h注释8.3.1版本 | 学无止境</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">学无止境</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">Do not bb, show me the example</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://example.com/2024/02/06/lv_conf.h%E6%B3%A8%E9%87%8A8.3.1%E7%89%88%E6%9C%AC/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="xudonglei">
      <meta itemprop="description" content="搬砖 嵌入式">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="学无止境">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          lv_conf.h注释8.3.1版本
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2024-02-06 21:58:15" itemprop="dateCreated datePublished" datetime="2024-02-06T21:58:15+08:00">2024-02-06</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E5%B5%8C%E5%85%A5%E5%BC%8F/" itemprop="url" rel="index"><span itemprop="name">嵌入式</span></a>
                </span>
            </span>

          
            <span id="/2024/02/06/lv_conf.h%E6%B3%A8%E9%87%8A8.3.1%E7%89%88%E6%9C%AC/" class="post-meta-item leancloud_visitors" data-flag-title="lv_conf.h注释8.3.1版本" title="阅读次数">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span class="leancloud-visitors-count"></span>
            </span>
  
  <span class="post-meta-item">
    
      <span class="post-meta-item-icon">
        <i class="fa fa-comment-o"></i>
      </span>
      <span class="post-meta-item-text">Valine：</span>
    
    <a title="valine" href="/2024/02/06/lv_conf.h%E6%B3%A8%E9%87%8A8.3.1%E7%89%88%E6%9C%AC/#valine-comments" itemprop="discussionUrl">
      <span class="post-comments-count valine-comment-count" data-xid="/2024/02/06/lv_conf.h%E6%B3%A8%E9%87%8A8.3.1%E7%89%88%E6%9C%AC/" itemprop="commentCount"></span>
    </a>
  </span>
  
  

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br><span class="line">262</span><br><span class="line">263</span><br><span class="line">264</span><br><span class="line">265</span><br><span class="line">266</span><br><span class="line">267</span><br><span class="line">268</span><br><span class="line">269</span><br><span class="line">270</span><br><span class="line">271</span><br><span class="line">272</span><br><span class="line">273</span><br><span class="line">274</span><br><span class="line">275</span><br><span class="line">276</span><br><span class="line">277</span><br><span class="line">278</span><br><span class="line">279</span><br><span class="line">280</span><br><span class="line">281</span><br><span class="line">282</span><br><span class="line">283</span><br><span class="line">284</span><br><span class="line">285</span><br><span class="line">286</span><br><span class="line">287</span><br><span class="line">288</span><br><span class="line">289</span><br><span class="line">290</span><br><span class="line">291</span><br><span class="line">292</span><br><span class="line">293</span><br><span class="line">294</span><br><span class="line">295</span><br><span class="line">296</span><br><span class="line">297</span><br><span class="line">298</span><br><span class="line">299</span><br><span class="line">300</span><br><span class="line">301</span><br><span class="line">302</span><br><span class="line">303</span><br><span class="line">304</span><br><span class="line">305</span><br><span class="line">306</span><br><span class="line">307</span><br><span class="line">308</span><br><span class="line">309</span><br><span class="line">310</span><br><span class="line">311</span><br><span class="line">312</span><br><span class="line">313</span><br><span class="line">314</span><br><span class="line">315</span><br><span class="line">316</span><br><span class="line">317</span><br><span class="line">318</span><br><span class="line">319</span><br><span class="line">320</span><br><span class="line">321</span><br><span class="line">322</span><br><span class="line">323</span><br><span class="line">324</span><br><span class="line">325</span><br><span class="line">326</span><br><span class="line">327</span><br><span class="line">328</span><br><span class="line">329</span><br><span class="line">330</span><br><span class="line">331</span><br><span class="line">332</span><br><span class="line">333</span><br><span class="line">334</span><br><span class="line">335</span><br><span class="line">336</span><br><span class="line">337</span><br><span class="line">338</span><br><span class="line">339</span><br><span class="line">340</span><br><span class="line">341</span><br><span class="line">342</span><br><span class="line">343</span><br><span class="line">344</span><br><span class="line">345</span><br><span class="line">346</span><br><span class="line">347</span><br><span class="line">348</span><br><span class="line">349</span><br><span class="line">350</span><br><span class="line">351</span><br><span class="line">352</span><br><span class="line">353</span><br><span class="line">354</span><br><span class="line">355</span><br><span class="line">356</span><br><span class="line">357</span><br><span class="line">358</span><br><span class="line">359</span><br><span class="line">360</span><br><span class="line">361</span><br><span class="line">362</span><br><span class="line">363</span><br><span class="line">364</span><br><span class="line">365</span><br><span class="line">366</span><br><span class="line">367</span><br><span class="line">368</span><br><span class="line">369</span><br><span class="line">370</span><br><span class="line">371</span><br><span class="line">372</span><br><span class="line">373</span><br><span class="line">374</span><br><span class="line">375</span><br><span class="line">376</span><br><span class="line">377</span><br><span class="line">378</span><br><span class="line">379</span><br><span class="line">380</span><br><span class="line">381</span><br><span class="line">382</span><br><span class="line">383</span><br><span class="line">384</span><br><span class="line">385</span><br><span class="line">386</span><br><span class="line">387</span><br><span class="line">388</span><br><span class="line">389</span><br><span class="line">390</span><br><span class="line">391</span><br><span class="line">392</span><br><span class="line">393</span><br><span class="line">394</span><br><span class="line">395</span><br><span class="line">396</span><br><span class="line">397</span><br><span class="line">398</span><br><span class="line">399</span><br><span class="line">400</span><br><span class="line">401</span><br><span class="line">402</span><br><span class="line">403</span><br><span class="line">404</span><br><span class="line">405</span><br><span class="line">406</span><br><span class="line">407</span><br><span class="line">408</span><br><span class="line">409</span><br><span class="line">410</span><br><span class="line">411</span><br><span class="line">412</span><br><span class="line">413</span><br><span class="line">414</span><br><span class="line">415</span><br><span class="line">416</span><br><span class="line">417</span><br><span class="line">418</span><br><span class="line">419</span><br><span class="line">420</span><br><span class="line">421</span><br><span class="line">422</span><br><span class="line">423</span><br><span class="line">424</span><br><span class="line">425</span><br><span class="line">426</span><br><span class="line">427</span><br><span class="line">428</span><br><span class="line">429</span><br><span class="line">430</span><br><span class="line">431</span><br><span class="line">432</span><br><span class="line">433</span><br><span class="line">434</span><br><span class="line">435</span><br><span class="line">436</span><br><span class="line">437</span><br><span class="line">438</span><br><span class="line">439</span><br><span class="line">440</span><br><span class="line">441</span><br><span class="line">442</span><br><span class="line">443</span><br><span class="line">444</span><br><span class="line">445</span><br><span class="line">446</span><br><span class="line">447</span><br><span class="line">448</span><br><span class="line">449</span><br><span class="line">450</span><br><span class="line">451</span><br><span class="line">452</span><br><span class="line">453</span><br><span class="line">454</span><br><span class="line">455</span><br><span class="line">456</span><br><span class="line">457</span><br><span class="line">458</span><br><span class="line">459</span><br><span class="line">460</span><br><span class="line">461</span><br><span class="line">462</span><br><span class="line">463</span><br><span class="line">464</span><br><span class="line">465</span><br><span class="line">466</span><br><span class="line">467</span><br><span class="line">468</span><br><span class="line">469</span><br><span class="line">470</span><br><span class="line">471</span><br><span class="line">472</span><br><span class="line">473</span><br><span class="line">474</span><br><span class="line">475</span><br><span class="line">476</span><br><span class="line">477</span><br><span class="line">478</span><br><span class="line">479</span><br><span class="line">480</span><br><span class="line">481</span><br><span class="line">482</span><br><span class="line">483</span><br><span class="line">484</span><br><span class="line">485</span><br><span class="line">486</span><br><span class="line">487</span><br><span class="line">488</span><br><span class="line">489</span><br><span class="line">490</span><br><span class="line">491</span><br><span class="line">492</span><br><span class="line">493</span><br><span class="line">494</span><br><span class="line">495</span><br><span class="line">496</span><br><span class="line">497</span><br><span class="line">498</span><br><span class="line">499</span><br><span class="line">500</span><br><span class="line">501</span><br><span class="line">502</span><br><span class="line">503</span><br><span class="line">504</span><br><span class="line">505</span><br><span class="line">506</span><br><span class="line">507</span><br><span class="line">508</span><br><span class="line">509</span><br><span class="line">510</span><br><span class="line">511</span><br><span class="line">512</span><br><span class="line">513</span><br><span class="line">514</span><br><span class="line">515</span><br><span class="line">516</span><br><span class="line">517</span><br><span class="line">518</span><br><span class="line">519</span><br><span class="line">520</span><br><span class="line">521</span><br><span class="line">522</span><br><span class="line">523</span><br><span class="line">524</span><br><span class="line">525</span><br><span class="line">526</span><br><span class="line">527</span><br><span class="line">528</span><br><span class="line">529</span><br><span class="line">530</span><br><span class="line">531</span><br><span class="line">532</span><br><span class="line">533</span><br><span class="line">534</span><br><span class="line">535</span><br><span class="line">536</span><br><span class="line">537</span><br><span class="line">538</span><br><span class="line">539</span><br><span class="line">540</span><br><span class="line">541</span><br><span class="line">542</span><br><span class="line">543</span><br><span class="line">544</span><br><span class="line">545</span><br><span class="line">546</span><br><span class="line">547</span><br><span class="line">548</span><br><span class="line">549</span><br><span class="line">550</span><br><span class="line">551</span><br><span class="line">552</span><br><span class="line">553</span><br><span class="line">554</span><br><span class="line">555</span><br><span class="line">556</span><br><span class="line">557</span><br><span class="line">558</span><br><span class="line">559</span><br><span class="line">560</span><br><span class="line">561</span><br><span class="line">562</span><br><span class="line">563</span><br><span class="line">564</span><br><span class="line">565</span><br><span class="line">566</span><br><span class="line">567</span><br><span class="line">568</span><br><span class="line">569</span><br><span class="line">570</span><br><span class="line">571</span><br><span class="line">572</span><br><span class="line">573</span><br><span class="line">574</span><br><span class="line">575</span><br><span class="line">576</span><br><span class="line">577</span><br><span class="line">578</span><br><span class="line">579</span><br><span class="line">580</span><br><span class="line">581</span><br><span class="line">582</span><br><span class="line">583</span><br><span class="line">584</span><br><span class="line">585</span><br><span class="line">586</span><br><span class="line">587</span><br><span class="line">588</span><br><span class="line">589</span><br><span class="line">590</span><br><span class="line">591</span><br><span class="line">592</span><br><span class="line">593</span><br><span class="line">594</span><br><span class="line">595</span><br><span class="line">596</span><br><span class="line">597</span><br><span class="line">598</span><br><span class="line">599</span><br><span class="line">600</span><br><span class="line">601</span><br><span class="line">602</span><br><span class="line">603</span><br><span class="line">604</span><br><span class="line">605</span><br><span class="line">606</span><br><span class="line">607</span><br><span class="line">608</span><br><span class="line">609</span><br><span class="line">610</span><br><span class="line">611</span><br><span class="line">612</span><br><span class="line">613</span><br><span class="line">614</span><br><span class="line">615</span><br><span class="line">616</span><br><span class="line">617</span><br><span class="line">618</span><br><span class="line">619</span><br><span class="line">620</span><br><span class="line">621</span><br><span class="line">622</span><br><span class="line">623</span><br><span class="line">624</span><br><span class="line">625</span><br><span class="line">626</span><br><span class="line">627</span><br><span class="line">628</span><br><span class="line">629</span><br><span class="line">630</span><br><span class="line">631</span><br><span class="line">632</span><br><span class="line">633</span><br><span class="line">634</span><br><span class="line">635</span><br><span class="line">636</span><br><span class="line">637</span><br><span class="line">638</span><br><span class="line">639</span><br><span class="line">640</span><br><span class="line">641</span><br><span class="line">642</span><br><span class="line">643</span><br><span class="line">644</span><br><span class="line">645</span><br><span class="line">646</span><br><span class="line">647</span><br><span class="line">648</span><br><span class="line">649</span><br><span class="line">650</span><br><span class="line">651</span><br><span class="line">652</span><br><span class="line">653</span><br><span class="line">654</span><br><span class="line">655</span><br><span class="line">656</span><br><span class="line">657</span><br><span class="line">658</span><br><span class="line">659</span><br><span class="line">660</span><br><span class="line">661</span><br><span class="line">662</span><br><span class="line">663</span><br><span class="line">664</span><br><span class="line">665</span><br><span class="line">666</span><br><span class="line">667</span><br><span class="line">668</span><br><span class="line">669</span><br><span class="line">670</span><br><span class="line">671</span><br><span class="line">672</span><br><span class="line">673</span><br><span class="line">674</span><br><span class="line">675</span><br><span class="line">676</span><br><span class="line">677</span><br><span class="line">678</span><br><span class="line">679</span><br><span class="line">680</span><br><span class="line">681</span><br><span class="line">682</span><br><span class="line">683</span><br><span class="line">684</span><br><span class="line">685</span><br><span class="line">686</span><br><span class="line">687</span><br><span class="line">688</span><br><span class="line">689</span><br><span class="line">690</span><br><span class="line">691</span><br><span class="line">692</span><br><span class="line">693</span><br><span class="line">694</span><br><span class="line">695</span><br><span class="line">696</span><br><span class="line">697</span><br><span class="line">698</span><br><span class="line">699</span><br><span class="line">700</span><br><span class="line">701</span><br><span class="line">702</span><br><span class="line">703</span><br><span class="line">704</span><br><span class="line">705</span><br><span class="line">706</span><br><span class="line">707</span><br><span class="line">708</span><br><span class="line">709</span><br><span class="line">710</span><br><span class="line">711</span><br><span class="line">712</span><br><span class="line">713</span><br><span class="line">714</span><br><span class="line">715</span><br><span class="line">716</span><br><span class="line">717</span><br><span class="line">718</span><br><span class="line">719</span><br><span class="line">720</span><br><span class="line">721</span><br><span class="line">722</span><br><span class="line">723</span><br><span class="line">724</span><br><span class="line">725</span><br><span class="line">726</span><br><span class="line">727</span><br><span class="line">728</span><br><span class="line">729</span><br><span class="line">730</span><br><span class="line">731</span><br><span class="line">732</span><br><span class="line">733</span><br><span class="line">734</span><br><span class="line">735</span><br><span class="line">736</span><br><span class="line">737</span><br><span class="line">738</span><br><span class="line">739</span><br><span class="line">740</span><br><span class="line">741</span><br><span class="line">742</span><br><span class="line">743</span><br><span class="line">744</span><br><span class="line">745</span><br><span class="line">746</span><br><span class="line">747</span><br><span class="line">748</span><br><span class="line">749</span><br><span class="line">750</span><br><span class="line">751</span><br><span class="line">752</span><br><span class="line">753</span><br><span class="line">754</span><br><span class="line">755</span><br><span class="line">756</span><br><span class="line">757</span><br><span class="line">758</span><br><span class="line">759</span><br><span class="line">760</span><br><span class="line">761</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * @file lv_conf.h</span></span><br><span class="line"><span class="comment"> * Configuration file for v8.3.1</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * 将这个文件复制为 `lv_conf.h`</span></span><br><span class="line"><span class="comment"> * 1. 就在 `lvgl` 文件夹旁边</span></span><br><span class="line"><span class="comment"> * 2. 或任何其他地方</span></span><br><span class="line"><span class="comment"> *    - 定义 `LV_CONF_INCLUDE_SIMPLE`</span></span><br><span class="line"><span class="comment"> *    - 添加路径作为包含路径</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/* 关闭clang格式 */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> 0 <span class="comment">/*设置为1生效*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">ifndef</span> LV_CONF_H</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_CONF_H</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">include</span> <span class="meta-string">&lt;stdint.h&gt;</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*====================</span></span><br><span class="line"><span class="comment">   颜色设置</span></span><br><span class="line"><span class="comment"> *====================*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*颜色深度: 1 (1 byte per pixel), 8 (RGB332), 16 (RGB565), 32 (ARGB8888)*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_COLOR_DEPTH 16</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*交换 RGB565 颜色的 2 个字节。 如果显示器有 8 位接口（例如 SPI）*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_COLOR_16_SWAP 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*启用在透明背景上绘制的功能。</span></span><br><span class="line"><span class="comment"> *如果使用 opa 和 transform_* 样式属性，则需要。</span></span><br><span class="line"><span class="comment"> *如果 UI 位于另一层之上，也可以使用，例如 OSD 菜单或视频播放器 */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_COLOR_SCREEN_TRANSP 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/* 调整颜色混合函数舍入。 GPU 可能会以不同的方式计算颜色混合（混合）。</span></span><br><span class="line"><span class="comment"> * 0：向下舍入，64：从 x.75 向上舍入，128：从一半向上舍入，192：从 x.25 向上舍入，254：向上舍入*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_COLOR_MIX_ROUND_OFS 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*如果是色度键，则不会绘制具有此颜色的图像像素）*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_COLOR_CHROMA_KEY lv_color_hex(0x00ff00)         <span class="comment">/*pure green*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*=========================</span></span><br><span class="line"><span class="comment">   内存设置</span></span><br><span class="line"><span class="comment"> *=========================*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*1: 使用自定义 malloc/free, 0: 使用内置的 `lv_mem_alloc()` 和 `lv_mem_free()` */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_MEM_CUSTOM 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_MEM_CUSTOM == 0</span></span><br><span class="line">    <span class="comment">/*`lv_mem_alloc()` 可用的内存大小 (&gt;= 2kB)*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_MEM_SIZE (48U * 1024U)          <span class="comment">/*[bytes]*/</span></span></span><br><span class="line"></span><br><span class="line">    <span class="comment">/*为内存池设置一个地址，而不是将其分配为普通数组。 也可以在外部SRAM中。*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_MEM_ADR 0     <span class="comment">/*0: unused*/</span></span></span><br><span class="line">    <span class="comment">/*给出一个内存分配器，而不是一个地址，它将被调用以获取 LVGL 的内存池。 例如。 my_malloc*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">if</span> LV_MEM_ADR == 0</span></span><br><span class="line">        <span class="meta">#<span class="meta-keyword">undef</span> LV_MEM_POOL_INCLUDE</span></span><br><span class="line">        <span class="meta">#<span class="meta-keyword">undef</span> LV_MEM_POOL_ALLOC</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">else</span>       <span class="comment">/*LV_MEM_CUSTOM*/</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_MEM_CUSTOM_INCLUDE <span class="meta-string">&lt;stdlib.h&gt;   /*Header for the dynamic memory function*/</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_MEM_CUSTOM_ALLOC   malloc</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_MEM_CUSTOM_FREE    free</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_MEM_CUSTOM_REALLOC realloc</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span>     <span class="comment">/*LV_MEM_CUSTOM*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*在渲染和其他内部处理机制期间使用的中间内存缓冲区的数量</span></span><br><span class="line"><span class="comment"> *如果没有足够的缓冲区，您将看到一条错误日志消息 */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_MEM_BUF_MAX_NUM 16</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*使用标准的`memcpy`和`memset`代替LVGL自己的函数。 （可能会或可能不会更快）。*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_MEMCPY_MEMSET_STD 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*====================</span></span><br><span class="line"><span class="comment">   硬件层设置</span></span><br><span class="line"><span class="comment"> *====================*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*默认显示刷新周期。 LVG会在这段时间内重绘改变的区域，降低数值可以增加帧率*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_DISP_DEF_REFR_PERIOD 30      <span class="comment">/*[ms]*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*输入设备读取周期，以毫秒为单位*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_INDEV_DEF_READ_PERIOD 30     <span class="comment">/*[ms]*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*使用自定义的刻度源，以毫秒为单位告知经过的时间。</span></span><br><span class="line"><span class="comment"> *它消除了使用 `lv_tick_inc()` 手动更新刻度的需要）使用arduino库需要改，要不然只显示第一帧*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_TICK_CUSTOM 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_TICK_CUSTOM</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_TICK_CUSTOM_INCLUDE <span class="meta-string">&quot;Arduino.h&quot;</span>         <span class="comment">/*Header for the system time function*/</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_TICK_CUSTOM_SYS_TIME_EXPR (millis())    <span class="comment">/*Expression evaluating to current system time in ms*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span>   <span class="comment">/*LV_TICK_CUSTOM*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*默认每英寸点数。 用于初始化默认大小，例如小部件大小、样式填充。</span></span><br><span class="line"><span class="comment"> *（不是那么重要，你可以调整它以修改默认大小和空间）*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_DPI_DEF 130     <span class="comment">/*[px/inch]*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*=======================</span></span><br><span class="line"><span class="comment"> * 特性</span></span><br><span class="line"><span class="comment"> *=======================*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*-------------</span></span><br><span class="line"><span class="comment"> * 绘图</span></span><br><span class="line"><span class="comment"> *-----------*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*启用复杂的绘制引擎。</span></span><br><span class="line"><span class="comment"> *需要绘制阴影、渐变、圆角、圆、弧、斜线、图像变换或任何蒙版*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_DRAW_COMPLEX 1</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_DRAW_COMPLEX != 0</span></span><br><span class="line"></span><br><span class="line">    <span class="comment">/*允许缓冲一些阴影计算。</span></span><br><span class="line"><span class="comment">    *LV_SHADOW_CACHE_SIZE 是最大值。 阴影大小到缓冲区，其中阴影大小是`shadow_width + radius`</span></span><br><span class="line"><span class="comment">    *缓存具有 LV_SHADOW_CACHE_SIZE^2 RAM 成本*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_SHADOW_CACHE_SIZE 0</span></span><br><span class="line"></span><br><span class="line">    <span class="comment">/* 设置最大缓存的圆形数据的数量。</span></span><br><span class="line"><span class="comment">    * 1/4圆的周长被保存用于抗锯齿</span></span><br><span class="line"><span class="comment">    * 半径 * 每个圆使用 4 个字节（保存最常用的半径）</span></span><br><span class="line"><span class="comment">    * 0: 禁用缓存 */</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_CIRCLE_CACHE_SIZE 4</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span> <span class="comment">/*LV_DRAW_COMPLEX*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 当小部件具有 `style_opa &lt; 255` 时使用“简单图层”将小部件缓冲到图层中</span></span><br><span class="line"><span class="comment"> * 并将其混合为具有给定不透明度的图像。</span></span><br><span class="line"><span class="comment"> * 请注意，`bg_opa`、`text_opa` 等不需要缓冲到层中）</span></span><br><span class="line"><span class="comment"> * 小部件可以以较小的块缓冲，以避免使用大缓冲区。</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * - LV_LAYER_SIMPLE_BUF_SIZE：[字节] 最佳目标缓冲区大小。 LVGL 将尝试分配它</span></span><br><span class="line"><span class="comment"> * - LV_LAYER_SIMPLE_FALLBACK_BUF_SIZE：如果无法分配“LV_LAYER_SIMPLE_BUF_SIZE”，则使用[字节]。</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * 两个缓冲区大小都以字节为单位。</span></span><br><span class="line"><span class="comment"> * “变换层”（使用 transform_angle/zoom 属性）使用更大的缓冲区</span></span><br><span class="line"><span class="comment"> * 并且不能分块绘制。 所以这些设置只影响具有不透明度的小部件。</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_LAYER_SIMPLE_BUF_SIZE          (24 * 1024)</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_LAYER_SIMPLE_FALLBACK_BUF_SIZE (3 * 1024)</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*默认图像缓存大小。 图像缓存使图像保持打开状态。</span></span><br><span class="line"><span class="comment"> *如果仅使用内置图像格式，则缓存没有真正的优势。 （即，如果没有添加新的图像解码器）</span></span><br><span class="line"><span class="comment"> *使用复杂的图像解码器（例如PNG或JPG）缓存可以保存图像的连续打开/解码。</span></span><br><span class="line"><span class="comment"> *但是打开的图像可能会消耗额外的 RAM。</span></span><br><span class="line"><span class="comment"> *0: 禁用缓存*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_IMG_CACHE_DEF_SIZE 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*每个渐变允许的停靠点数。 增加它以允许更多停止。</span></span><br><span class="line"><span class="comment"> *这将增加 (sizeof(lv_color_t) + 1) 字节每个额外的停止 */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_GRADIENT_MAX_STOPS 2</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*默认渐变缓冲区大小。</span></span><br><span class="line"><span class="comment"> *当 LVGL 计算梯度“地图”时，它可以将它们保存到缓存中以避免再次计算它们。</span></span><br><span class="line"><span class="comment"> *LV_GRAD_CACHE_DEF_SIZE 设置此缓存的大小（以字节为单位）。</span></span><br><span class="line"><span class="comment"> *如果缓存太小，地图将仅在绘图需要时分配。</span></span><br><span class="line"><span class="comment"> *0 表示不缓存。*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_GRAD_CACHE_DEF_SIZE 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*允许抖动渐变（在有限的颜色深度显示上实现视觉平滑的颜色渐变）</span></span><br><span class="line"><span class="comment"> *LV_DITHER_GRADIENT 意味着分配一到两行对象的渲染表面</span></span><br><span class="line"><span class="comment"> *如果使用误差扩散，内存消耗的增加是（32 位 * 对象宽度）加上 24 位 * 对象宽度 */</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_DITHER_GRADIENT 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_DITHER_GRADIENT</span></span><br><span class="line">    <span class="comment">/*添加对误差扩散抖动的支持。</span></span><br><span class="line"><span class="comment">     *误差扩散抖动获得更好的视觉效果，但在绘图时意味着更多的 CPU 消耗和内存。</span></span><br><span class="line"><span class="comment">     *内存消耗的增加是（24位*对象的宽度）*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_DITHER_ERROR_DIFFUSION 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*为旋转分配的最大缓冲区大小。</span></span><br><span class="line"><span class="comment"> *仅在显示驱动程序中启用软件旋转时使用。*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_DISP_ROT_MAX_BUF (10*1024)</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*-------------</span></span><br><span class="line"><span class="comment"> * GPU</span></span><br><span class="line"><span class="comment"> *-----------*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*使用Arm的2D加速库Arm-2D  */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_GPU_ARM2D 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Use STM32&#x27;s DMA2D (aka Chrom Art) GPU*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_GPU_STM32_DMA2D 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_GPU_STM32_DMA2D</span></span><br><span class="line">    <span class="comment">/*Must be defined to include path of CMSIS header of target processor</span></span><br><span class="line"><span class="comment">    e.g. &quot;stm32f769xx.h&quot; or &quot;stm32f429xx.h&quot;*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_GPU_DMA2D_CMSIS_INCLUDE</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Use SWM341&#x27;s DMA2D GPU*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_GPU_SWM341_DMA2D 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_GPU_SWM341_DMA2D</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_GPU_SWM341_DMA2D_INCLUDE <span class="meta-string">&quot;SWM341.h&quot;</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Use NXP&#x27;s PXP GPU iMX RTxxx platforms*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_GPU_NXP_PXP 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_GPU_NXP_PXP</span></span><br><span class="line">    <span class="comment">/*1: Add default bare metal and FreeRTOS interrupt handling routines for PXP (lv_gpu_nxp_pxp_osa.c)</span></span><br><span class="line"><span class="comment">    *   and call lv_gpu_nxp_pxp_init() automatically during lv_init(). Note that symbol SDK_OS_FREE_RTOS</span></span><br><span class="line"><span class="comment">    *   has to be defined in order to use FreeRTOS OSA, otherwise bare-metal implementation is selected.</span></span><br><span class="line"><span class="comment">    *0: lv_gpu_nxp_pxp_init() has to be called manually before lv_init()</span></span><br><span class="line"><span class="comment">    */</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_USE_GPU_NXP_PXP_AUTO_INIT 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Use NXP&#x27;s VG-Lite GPU iMX RTxxx platforms*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_GPU_NXP_VG_LITE 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*使用 SDL 渲染器 API linux上使用*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_GPU_SDL 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_GPU_SDL</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_GPU_SDL_INCLUDE_PATH <span class="meta-string">&lt;SDL2/SDL.h&gt;</span></span></span><br><span class="line">    <span class="comment">/*Texture cache size, 8MB by default*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_GPU_SDL_LRU_SIZE (1024 * 1024 * 8)</span></span><br><span class="line">    <span class="comment">/*Custom blend mode for mask drawing, disable if you need to link with older SDL2 lib*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_GPU_SDL_CUSTOM_BLEND_MODE (SDL_VERSION_ATLEAST(2, 0, 6))</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*-------------</span></span><br><span class="line"><span class="comment"> * 日志</span></span><br><span class="line"><span class="comment"> *-----------*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*开启日志*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_LOG 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_LOG</span></span><br><span class="line"></span><br><span class="line">    <span class="comment">/*应该添加多么重要的日志：</span></span><br><span class="line"><span class="comment">    *LV_LOG_LEVEL_TRACE       很多日志给出详细信息</span></span><br><span class="line"><span class="comment">    *LV_LOG_LEVEL_INFO        记录重要事件</span></span><br><span class="line"><span class="comment">    *LV_LOG_LEVEL_WARN        如果发生了不希望的事情但没有引起问题，则记录下来</span></span><br><span class="line"><span class="comment">    *LV_LOG_LEVEL_ERROR       仅严重问题，当系统可能失败时</span></span><br><span class="line"><span class="comment">    *LV_LOG_LEVEL_USER        仅用户添加的日志</span></span><br><span class="line"><span class="comment">    *LV_LOG_LEVEL_NONE        不记录任何内容*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_LOG_LEVEL LV_LOG_LEVEL_WARN</span></span><br><span class="line"></span><br><span class="line">    <span class="comment">/*1: 用&#x27;printf&#x27;打印日志；</span></span><br><span class="line"><span class="comment">    *0: 用户需要使用 `lv_log_register_print_cb()` 注册回调 */</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_LOG_PRINTF 0</span></span><br><span class="line"></span><br><span class="line">    <span class="comment">/*Enable/disable LV_LOG_TRACE in modules that produces a huge number of logs*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_LOG_TRACE_MEM        1</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_LOG_TRACE_TIMER      1</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_LOG_TRACE_INDEV      1</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_LOG_TRACE_DISP_REFR  1</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_LOG_TRACE_EVENT      1</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_LOG_TRACE_OBJ_CREATE 1</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_LOG_TRACE_LAYOUT     1</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_LOG_TRACE_ANIM       1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span>  <span class="comment">/*LV_USE_LOG*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*-------------</span></span><br><span class="line"><span class="comment"> * 断言</span></span><br><span class="line"><span class="comment"> *-----------*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*如果操作失败或发现无效数据，则启用断言。</span></span><br><span class="line"><span class="comment"> *如果启用了 LV_USE_LOG，则会在失败时打印错误消息*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_ASSERT_NULL          1   <span class="comment">/*Check if the parameter is NULL. (Very fast, recommended)*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_ASSERT_MALLOC        1   <span class="comment">/*Checks is the memory is successfully allocated or no. (Very fast, recommended)*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_ASSERT_STYLE         0   <span class="comment">/*Check if the styles are properly initialized. (Very fast, recommended)*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_ASSERT_MEM_INTEGRITY 0   <span class="comment">/*Check the integrity of `lv_mem` after critical operations. (Slow)*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_ASSERT_OBJ           0   <span class="comment">/*Check the object&#x27;s type and existence (e.g. not deleted). (Slow)*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*在断言发生时添加一个自定义处理程序，例如 重启MCU*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_ASSERT_HANDLER_INCLUDE <span class="meta-string">&lt;stdint.h&gt;</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_ASSERT_HANDLER while(1);   <span class="comment">/*Halt by default*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*-------------</span></span><br><span class="line"><span class="comment"> * 其他</span></span><br><span class="line"><span class="comment"> *-----------*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*1: 显示cpu使用率帧率 */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_PERF_MONITOR 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_PERF_MONITOR</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*1: 显示已用内存和内存碎片</span></span><br><span class="line"><span class="comment"> * 需要 LV_MEM_CUSTOM = 0 */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_MEM_MONITOR 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_MEM_MONITOR</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*1: 在重绘区域上绘制随机彩色矩形*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_REFR_DEBUG 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*更改内置 (v)snprintf 函数，用于将c++的字符串转成字符数组*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_SPRINTF_CUSTOM 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_SPRINTF_CUSTOM</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_SPRINTF_INCLUDE <span class="meta-string">&lt;stdio.h&gt;</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> lv_snprintf  snprintf</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> lv_vsnprintf vsnprintf</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">else</span>   <span class="comment">/*LV_SPRINTF_CUSTOM*/</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_SPRINTF_USE_FLOAT 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span>  <span class="comment">/*LV_SPRINTF_CUSTOM*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_USER_DATA 1</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*支持垃圾回收</span></span><br><span class="line"><span class="comment"> *Used if lvgl is bound to higher level language and the memory is managed by that language*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_ENABLE_GC 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_ENABLE_GC != 0</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_GC_INCLUDE <span class="meta-string">&quot;gc.h&quot;</span>                           <span class="comment">/*Include Garbage Collector related things*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span> <span class="comment">/*LV_ENABLE_GC*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*=====================</span></span><br><span class="line"><span class="comment"> *  编译选项</span></span><br><span class="line"><span class="comment"> *====================*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*For big endian systems set to 1*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_BIG_ENDIAN_SYSTEM 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Define a custom attribute to `lv_tick_inc` function*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_ATTRIBUTE_TICK_INC</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Define a custom attribute to `lv_timer_handler` function*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_ATTRIBUTE_TIMER_HANDLER</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Define a custom attribute to `lv_disp_flush_ready` function*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_ATTRIBUTE_FLUSH_READY</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Required alignment size for buffers*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_ATTRIBUTE_MEM_ALIGN_SIZE 1</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Will be added where memories needs to be aligned (with -Os data might not be aligned to boundary by default).</span></span><br><span class="line"><span class="comment"> * E.g. __attribute__((aligned(4)))*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_ATTRIBUTE_MEM_ALIGN</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Attribute to mark large constant arrays for example font&#x27;s bitmaps*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_ATTRIBUTE_LARGE_CONST</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Compiler prefix for a big array declaration in RAM*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_ATTRIBUTE_LARGE_RAM_ARRAY</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Place performance critical functions into a faster memory (e.g RAM)*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_ATTRIBUTE_FAST_MEM</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Prefix variables that are used in GPU accelerated operations, often these need to be placed in RAM sections that are DMA accessible*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_ATTRIBUTE_DMA</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Export integer constant to binding. This macro is used with constants in the form of LV_&lt;CONST&gt; that</span></span><br><span class="line"><span class="comment"> *should also appear on LVGL binding API such as Micropython.*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning <span class="comment">/*The default value just prevents GCC warning*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Extend the default -32k..32k coordinate range to -4M..4M by using int32_t for coordinates instead of int16_t*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_LARGE_COORD 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*==================</span></span><br><span class="line"><span class="comment"> *   字体</span></span><br><span class="line"><span class="comment"> *===================*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Montserrat fonts with ASCII range and some symbols using bpp = 4</span></span><br><span class="line"><span class="comment"> *https://fonts.google.com/specimen/Montserrat*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_8  0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_10 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_12 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_14 1</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_16 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_18 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_20 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_22 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_24 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_26 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_28 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_30 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_32 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_34 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_36 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_38 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_40 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_42 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_44 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_46 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_48 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/* 特殊功能*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_12_SUBPX      0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_MONTSERRAT_28_COMPRESSED 0  <span class="comment">/*bpp = 3*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0  <span class="comment">/*希伯来语、阿拉伯语、波斯语字母及其所有形式*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_SIMSUN_16_CJK            0  <span class="comment">/*1000个常见亚洲字体*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*像素完美等宽字体*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_UNSCII_8  0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_UNSCII_16 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*可选地在此处声明自定义字体。</span></span><br><span class="line"><span class="comment"> *您也可以将这些字体用作默认字体，它们将在全球范围内可用。</span></span><br><span class="line"><span class="comment"> *例如。 #define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(my_font_1) LV_FONT_DECLARE(my_font_2)*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_CUSTOM_DECLARE</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*设置默认字体*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_FONT_DEFAULT &amp;lv_font_montserrat_14</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*启用处理大字体和/或具有大量字符的字体。</span></span><br><span class="line"><span class="comment"> *限制取决于字体大小、字体和 bpp。</span></span><br><span class="line"><span class="comment"> *限制取决于字体大小、字体和 bpp。</span></span><br><span class="line"><span class="comment">#define LV_FONT_FMT_TXT_LARGE 0</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment">/*字体压缩*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_FONT_COMPRESSED 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*子像素选择，使用rgb三个像素*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_FONT_SUBPX 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_FONT_SUBPX</span></span><br><span class="line">    <span class="comment">/*Set the pixel order of the display. Physical order of RGB channels. Doesn&#x27;t matter with &quot;normal&quot; fonts.*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FONT_SUBPX_BGR 0  <span class="comment">/*0: RGB; 1:BGR order*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*当找不到字形dsc时启用绘图占位符*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_FONT_PLACEHOLDER 1</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*=================</span></span><br><span class="line"><span class="comment"> *   文字设置</span></span><br><span class="line"><span class="comment"> *=================*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 选择字符串的字符编码。</span></span><br><span class="line"><span class="comment"> * 您的 IDE 或编辑器应该具有相同的字符编码</span></span><br><span class="line"><span class="comment"> * - LV_TXT_ENC_UTF8</span></span><br><span class="line"><span class="comment"> * - LV_TXT_ENC_ASCII</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_TXT_ENC LV_TXT_ENC_UTF8</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Can break (wrap) texts on these chars*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_TXT_BREAK_CHARS <span class="meta-string">&quot; ,.;:-_&quot;</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*If a word is at least this long, will break wherever &quot;prettiest&quot;</span></span><br><span class="line"><span class="comment"> *To disable, set to a value &lt;= 0*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_TXT_LINE_BREAK_LONG_LEN 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Minimum number of characters in a long word to put on a line before a break.</span></span><br><span class="line"><span class="comment"> *Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN 3</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Minimum number of characters in a long word to put on a line after a break.</span></span><br><span class="line"><span class="comment"> *Depends on LV_TXT_LINE_BREAK_LONG_LEN.*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN 3</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*The control character to use for signalling text recoloring.*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_TXT_COLOR_CMD <span class="meta-string">&quot;#&quot;</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Support bidirectional texts. Allows mixing Left-to-Right and Right-to-Left texts.</span></span><br><span class="line"><span class="comment"> *The direction will be processed according to the Unicode Bidirectional Algorithm:</span></span><br><span class="line"><span class="comment"> *https://www.w3.org/International/articles/inline-bidi-markup/uba-basics*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_BIDI 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_BIDI</span></span><br><span class="line">    <span class="comment">/*Set the default direction. Supported values:</span></span><br><span class="line"><span class="comment">    *`LV_BASE_DIR_LTR` Left-to-Right</span></span><br><span class="line"><span class="comment">    *`LV_BASE_DIR_RTL` Right-to-Left</span></span><br><span class="line"><span class="comment">    *`LV_BASE_DIR_AUTO` detect texts base direction*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_BIDI_BASE_DIR_DEF LV_BASE_DIR_AUTO</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Enable Arabic/Persian processing</span></span><br><span class="line"><span class="comment"> *In these languages characters should be replaced with an other form based on their position in the text*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_ARABIC_PERSIAN_CHARS 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*==================</span></span><br><span class="line"><span class="comment"> *  小部件使用</span></span><br><span class="line"><span class="comment"> *================*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Documentation of the widgets: https://docs.lvgl.io/latest/en/html/widgets/index.html*/</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_ARC        1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_BAR        1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_BTN        1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_BTNMATRIX  1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_CANVAS     1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_CHECKBOX   1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_DROPDOWN   1   <span class="comment">/*Requires: lv_label*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_IMG        1   <span class="comment">/*Requires: lv_label*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_LABEL      1</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_LABEL</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_LABEL_TEXT_SELECTION 1 <span class="comment">/*Enable selecting text of the label*/</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_LABEL_LONG_TXT_HINT 1  <span class="comment">/*Store some extra info in labels to speed up drawing of very long texts*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_LINE       1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_ROLLER     1   <span class="comment">/*Requires: lv_label*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_ROLLER</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_ROLLER_INF_PAGES 7 <span class="comment">/*Number of extra &quot;pages&quot; when the roller is infinite*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_SLIDER     1   <span class="comment">/*Requires: lv_bar*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_SWITCH     1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_TEXTAREA   1   <span class="comment">/*Requires: lv_label*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_TEXTAREA != 0</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_TEXTAREA_DEF_PWD_SHOW_TIME 1500    <span class="comment">/*ms*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_TABLE      1</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*==================</span></span><br><span class="line"><span class="comment"> * EXTRA COMPONENTS</span></span><br><span class="line"><span class="comment"> *==================*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*-----------</span></span><br><span class="line"><span class="comment"> * Widgets</span></span><br><span class="line"><span class="comment"> *----------*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_ANIMIMG    1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_CALENDAR   1</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_CALENDAR</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_CALENDAR_WEEK_STARTS_MONDAY 0</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">if</span> LV_CALENDAR_WEEK_STARTS_MONDAY</span></span><br><span class="line">        <span class="meta">#<span class="meta-keyword">define</span> LV_CALENDAR_DEFAULT_DAY_NAMES &#123;<span class="meta-string">&quot;Mo&quot;</span>, <span class="meta-string">&quot;Tu&quot;</span>, <span class="meta-string">&quot;We&quot;</span>, <span class="meta-string">&quot;Th&quot;</span>, <span class="meta-string">&quot;Fr&quot;</span>, <span class="meta-string">&quot;Sa&quot;</span>, <span class="meta-string">&quot;Su&quot;</span>&#125;</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">else</span></span></span><br><span class="line">        <span class="meta">#<span class="meta-keyword">define</span> LV_CALENDAR_DEFAULT_DAY_NAMES &#123;<span class="meta-string">&quot;Su&quot;</span>, <span class="meta-string">&quot;Mo&quot;</span>, <span class="meta-string">&quot;Tu&quot;</span>, <span class="meta-string">&quot;We&quot;</span>, <span class="meta-string">&quot;Th&quot;</span>, <span class="meta-string">&quot;Fr&quot;</span>, <span class="meta-string">&quot;Sa&quot;</span>&#125;</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_CALENDAR_DEFAULT_MONTH_NAMES &#123;<span class="meta-string">&quot;January&quot;</span>, <span class="meta-string">&quot;February&quot;</span>, <span class="meta-string">&quot;March&quot;</span>,  <span class="meta-string">&quot;April&quot;</span>, <span class="meta-string">&quot;May&quot;</span>,  <span class="meta-string">&quot;June&quot;</span>, <span class="meta-string">&quot;July&quot;</span>, <span class="meta-string">&quot;August&quot;</span>, <span class="meta-string">&quot;September&quot;</span>, <span class="meta-string">&quot;October&quot;</span>, <span class="meta-string">&quot;November&quot;</span>, <span class="meta-string">&quot;December&quot;</span>&#125;</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_USE_CALENDAR_HEADER_ARROW 1</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_USE_CALENDAR_HEADER_DROPDOWN 1</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span>  <span class="comment">/*LV_USE_CALENDAR*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_CHART      1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_COLORWHEEL 1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_IMGBTN     1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_KEYBOARD   1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_LED        1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_LIST       1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_MENU       1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_METER      1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_MSGBOX     1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_SPAN       1</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_SPAN</span></span><br><span class="line">    <span class="comment">/*A line text can contain maximum num of span descriptor */</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_SPAN_SNIPPET_STACK_SIZE 64</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_SPINBOX    1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_SPINNER    1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_TABVIEW    1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_TILEVIEW   1</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_WIN        1</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*-----------</span></span><br><span class="line"><span class="comment"> *  主题</span></span><br><span class="line"><span class="comment"> *----------*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*A simple, impressive and very complete theme*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_THEME_DEFAULT 1</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_THEME_DEFAULT</span></span><br><span class="line"></span><br><span class="line">    <span class="comment">/*0: Light mode; 1: Dark mode*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_THEME_DEFAULT_DARK 0</span></span><br><span class="line"></span><br><span class="line">    <span class="comment">/*1: Enable grow on press*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_THEME_DEFAULT_GROW 1</span></span><br><span class="line"></span><br><span class="line">    <span class="comment">/*Default transition time in [ms]*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_THEME_DEFAULT_TRANSITION_TIME 80</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span> <span class="comment">/*LV_USE_THEME_DEFAULT*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*A very simple theme that is a good starting point for a custom theme*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_THEME_BASIC 1</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*A theme designed for monochrome displays*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_THEME_MONO 1</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*-----------</span></span><br><span class="line"><span class="comment"> * Layouts</span></span><br><span class="line"><span class="comment"> *----------*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*A layout similar to Flexbox in CSS.*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_FLEX 1</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*A layout similar to Grid in CSS.*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_GRID 1</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*---------------------</span></span><br><span class="line"><span class="comment"> * 第三方库</span></span><br><span class="line"><span class="comment"> *--------------------*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*文件系统api */</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*API for fopen, fread, etc*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_FS_STDIO 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_FS_STDIO</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FS_STDIO_LETTER <span class="meta-string">&#x27;\0&#x27;</span>     <span class="comment">/*Set an upper cased letter on which the drive will accessible (e.g. &#x27;A&#x27;)*/</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FS_STDIO_PATH <span class="meta-string">&quot;&quot;</span>         <span class="comment">/*Set the working directory. File/directory paths will be appended to it.*/</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FS_STDIO_CACHE_SIZE 0    <span class="comment">/*&gt;0 to cache this number of bytes in lv_fs_read()*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*API for open, read, etc*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_FS_POSIX 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_FS_POSIX</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FS_POSIX_LETTER <span class="meta-string">&#x27;\0&#x27;</span>     <span class="comment">/*Set an upper cased letter on which the drive will accessible (e.g. &#x27;A&#x27;)*/</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FS_POSIX_PATH <span class="meta-string">&quot;&quot;</span>         <span class="comment">/*Set the working directory. File/directory paths will be appended to it.*/</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FS_POSIX_CACHE_SIZE 0    <span class="comment">/*&gt;0 to cache this number of bytes in lv_fs_read()*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*API for CreateFile, ReadFile, etc*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_FS_WIN32 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_FS_WIN32</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FS_WIN32_LETTER <span class="meta-string">&#x27;\0&#x27;</span>     <span class="comment">/*Set an upper cased letter on which the drive will accessible (e.g. &#x27;A&#x27;)*/</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FS_WIN32_PATH <span class="meta-string">&quot;&quot;</span>         <span class="comment">/*Set the working directory. File/directory paths will be appended to it.*/</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FS_WIN32_CACHE_SIZE 0    <span class="comment">/*&gt;0 to cache this number of bytes in lv_fs_read()*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*API for FATFS (needs to be added separately). Uses f_open, f_read, etc*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_FS_FATFS 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_FS_FATFS</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FS_FATFS_LETTER <span class="meta-string">&#x27;\0&#x27;</span>     <span class="comment">/*Set an upper cased letter on which the drive will accessible (e.g. &#x27;A&#x27;)*/</span></span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FS_FATFS_CACHE_SIZE 0    <span class="comment">/*&gt;0 to cache this number of bytes in lv_fs_read()*/</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*PNG decoder library*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_PNG 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*BMP decoder library*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_BMP 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/* JPG + split JPG decoder library.</span></span><br><span class="line"><span class="comment"> * Split JPG is a custom format optimized for embedded systems. */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_SJPG 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*GIF decoder library*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_GIF 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*QR code library*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_QRCODE 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*FreeType library*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_FREETYPE 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_FREETYPE</span></span><br><span class="line">    <span class="comment">/*Memory used by FreeType to cache characters [bytes] (-1: no caching)*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FREETYPE_CACHE_SIZE (16 * 1024)</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">if</span> LV_FREETYPE_CACHE_SIZE &gt;= 0</span></span><br><span class="line">        <span class="comment">/* 1: bitmap cache use the sbit cache, 0:bitmap cache use the image cache. */</span></span><br><span class="line">        <span class="comment">/* sbit cache:it is much more memory efficient for small bitmaps(font size &lt; 256) */</span></span><br><span class="line">        <span class="comment">/* if font size &gt;= 256, must be configured as image cache */</span></span><br><span class="line">        <span class="meta">#<span class="meta-keyword">define</span> LV_FREETYPE_SBIT_CACHE 0</span></span><br><span class="line">        <span class="comment">/* Maximum number of opened FT_Face/FT_Size objects managed by this cache instance. */</span></span><br><span class="line">        <span class="comment">/* (0:use system defaults) */</span></span><br><span class="line">        <span class="meta">#<span class="meta-keyword">define</span> LV_FREETYPE_CACHE_FT_FACES 0</span></span><br><span class="line">        <span class="meta">#<span class="meta-keyword">define</span> LV_FREETYPE_CACHE_FT_SIZES 0</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Rlottie library*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_RLOTTIE 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*FFmpeg library for image decoding and playing videos</span></span><br><span class="line"><span class="comment"> *Supports all major image formats so do not enable other image decoder with it*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_FFMPEG 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_FFMPEG</span></span><br><span class="line">    <span class="comment">/*Dump input information to stderr*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_FFMPEG_DUMP_FORMAT 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*-----------</span></span><br><span class="line"><span class="comment"> * 其他 </span></span><br><span class="line"><span class="comment"> *----------*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*1: Enable API to take snapshot for object*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_SNAPSHOT 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*1: Enable Monkey test*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_MONKEY 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*1: Enable grid navigation*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_GRIDNAV 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*1: Enable lv_obj fragment*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_FRAGMENT 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*1: Support using images as font in label or span widgets */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_IMGFONT 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*1: Enable a published subscriber based messaging system */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_MSG 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*1: 拼音输入法*/</span></span><br><span class="line"><span class="comment">/*Requires: lv_keyboard*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_IME_PINYIN 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_IME_PINYIN</span></span><br><span class="line">    <span class="comment">/*1: Use default thesaurus*/</span></span><br><span class="line">    <span class="comment">/*If you do not use the default thesaurus, be sure to use `lv_ime_pinyin` after setting the thesauruss*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_IME_PINYIN_USE_DEFAULT_DICT 1</span></span><br><span class="line">    <span class="comment">/*Set the maximum number of candidate panels that can be displayed*/</span></span><br><span class="line">    <span class="comment">/*This needs to be adjusted according to the size of the screen*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_IME_PINYIN_CAND_TEXT_NUM 6</span></span><br><span class="line"></span><br><span class="line">    <span class="comment">/*九宫格输入法*/</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_IME_PINYIN_USE_K9_MODE      1</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">if</span> LV_IME_PINYIN_USE_K9_MODE == 1</span></span><br><span class="line">        <span class="meta">#<span class="meta-keyword">define</span> LV_IME_PINYIN_K9_CAND_TEXT_NUM 3</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">endif</span> <span class="comment">// LV_IME_PINYIN_USE_K9_MODE</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*==================</span></span><br><span class="line"><span class="comment">* 例子</span></span><br><span class="line"><span class="comment">*==================*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*设置为1才能使用库里自带的例子*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_BUILD_EXAMPLES 1</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*===================</span></span><br><span class="line"><span class="comment"> * DEMO USAGE</span></span><br><span class="line"><span class="comment"> ====================*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Show some widget. It might be required to increase `LV_MEM_SIZE` */</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_DEMO_WIDGETS 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_DEMO_WIDGETS</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_DEMO_WIDGETS_SLIDESHOW 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Demonstrate the usage of encoder and keyboard*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_DEMO_KEYPAD_AND_ENCODER 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Benchmark your system*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_DEMO_BENCHMARK 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_DEMO_BENCHMARK</span></span><br><span class="line"><span class="comment">/*Use RGB565A8 images with 16 bit color depth instead of ARGB8565*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_DEMO_BENCHMARK_RGB565A8 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Stress test for LVGL*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_DEMO_STRESS 0</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*Music player demo*/</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> LV_USE_DEMO_MUSIC 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">if</span> LV_USE_DEMO_MUSIC</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_DEMO_MUSIC_SQUARE    0</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_DEMO_MUSIC_LANDSCAPE 0</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_DEMO_MUSIC_ROUND     0</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_DEMO_MUSIC_LARGE     0</span></span><br><span class="line">    <span class="meta">#<span class="meta-keyword">define</span> LV_DEMO_MUSIC_AUTO_PLAY 0</span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span></span></span><br><span class="line"></span><br><span class="line"><span class="comment">/*--END OF LV_CONF_H--*/</span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span> <span class="comment">/*LV_CONF_H*/</span></span></span><br><span class="line"></span><br><span class="line"><span class="meta">#<span class="meta-keyword">endif</span> <span class="comment">/*End of &quot;Content enable&quot;*/</span></span></span><br><span class="line"></span><br></pre></td></tr></table></figure>
<p><strong>颜色深度</strong></p>
<p>​        颜色深度是指表示图形元素颜色的位数。位数越高，颜色表现能力越丰富，可以有更多的颜色选择。</p>
<p>​        LVGL支持的颜色深度通常是1位（黑白）、8位（256色）和16位（65,536色）。具体的颜色深度选择取决于应用需求和设备的硬件支持。</p>
<p>​        1位颜色深度表示每个像素只有两种颜色选择，通常是黑色和白色。在这种情况下，内存使用效率非常高，但图形元素的颜色表现能力有限。</p>
<p>​        8位颜色深度提供了256种不同的颜色选择，可以呈现更丰富的图形效果。这对于大多数应用来说已经足够了，而且相对于16位颜色深度来说，占用的内存较少。</p>
<p>​        16位颜色深度则提供了65536种不同的颜色选择，可以呈现非常精细的图形效果。这在一些需要更高颜色表现能力的应用中非常有用，但也需要更多的内存。</p>
<p><strong>LV_COLOR_16_SWAP</strong></p>
<p>​        交换2字节的RGB565颜色。如果用串行设备且为8位会很有用，因为u16类型强转u8指针会先指向低8位。LV_COLOR_16_SWAP宏的作用是将RGB565颜色中的高字节和低字节进行位置交换。这种位置交换可以解决一些特定硬件平台上的字节序问题。有些硬件平台可能会从内存中以不同的字节序读取颜色数据，导致显示颜色错误。通过使用LV_COLOR_16_SWAP宏，可以确保在这些平台上正确地渲染颜色。</p>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/LVGL/" rel="tag"># LVGL</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2024/02/06/python%E5%A4%9A%E7%BA%BF%E7%A8%8B%E4%B9%8B%E5%AE%88%E6%8A%A4%E7%BA%BF%E7%A8%8B%20threading.Thread(target=xxx,daemon=True)/" rel="prev" title="python多线程之守护线程 threading.Thread(target=xxx,daemon=True)">
      <i class="fa fa-chevron-left"></i> python多线程之守护线程 threading.Thread(target=xxx,daemon=True)
    </a></div>
      <div class="post-nav-item">
    <a href="/2024/02/10/%E4%B9%90%E9%91%ABEspressif%20IDE%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E5%AE%89%E8%A3%85/" rel="next" title="乐鑫Espressif IDE开发环境安装">
      乐鑫Espressif IDE开发环境安装 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          
    <div class="comments" id="valine-comments"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">xudonglei</p>
  <div class="site-description" itemprop="description">搬砖 嵌入式</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">283</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">19</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">67</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2024</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">xudonglei</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>




  




  
<script src="/js/local-search.js"></script>













  

  


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail', 'link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : false,
      notify     : false,
      appId      : 'BT0Qw9HcTpPv1a6cT1iDBXKz-gzGzoHsz',
      appKey     : 'LMCMh8v02JTMFAwKNRcgoizI',
      placeholder: "Just go go",
      avatar     : 'mm',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : true,
      lang       : 'zh-CN' || 'zh-cn',
      path       : location.pathname,
      recordIP   : false,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>

</body>
</html>
